use strict;
use warnings;

package Event;
use base qw(My::DB::Object);

__PACKAGE__->meta->setup(
	table   => 'Event',
	columns => [
		'id'               => { 'type' => 'serial',    'primary_key' => 1,   'not_null' => 1 },
		'name'             => { 'type' => 'varchar',   'length'      => 255, 'not_null' => 1 },
		'active'           => { 'type' => 'boolean',      'not_null'      => 1, 'default' => 1 },
		'created'          => { 'type' => 'timestamp', 'not_null'    => 1,   'default'  => 'now' },
	],
	relationships => [
	],
);

1;
